import { defineStore } from "pinia"
import { getToken } from "@/utils/auth"

export const UserStore = defineStore("user", {
  state: () => ({
    count: 1,
    token: getToken(),
    info: null
  }),
  getters: {},
  actions: {
    // action
  },
  persist: {
    storage: localStorage
  }
})
